home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / mail / mh / contrib / 9209 / mheditor < prev    next >
Text File  |  1992-09-20  |  497b  |  23 lines

  1. #!/bin/sh
  2. # Subject: MH editor sh script
  3. # Date: Fri, 21 Aug 92 11:49:46 -0500
  4. # From: Tom McCain <tom@ecn.purdue.edu>
  5. # I use the following (courtesy of Dave Curry) to toggle MH's
  6. # "editor" between 9600 and 1200 bauds.  If I'm at 9600 baud MH uses
  7. # emacs if I'm at 1200 MH uses vi.  I call it "mheditor".  In my
  8. # .mh_profile I set: 
  9. #     editor: mheditor
  10. #
  11. # ...BTW, the q101 is the 1200 baud (dialup) terminal.
  12.  
  13. case "$TERM" in
  14. q101)
  15.     editor=vi;;
  16. *)
  17.     editor=emacs;;
  18. esac
  19.  
  20. exec $editor $*
  21.